package com.ds.dsm.view.config.gallery;

import com.ds.esd.custom.annotation.CustomAnnotation;
import com.ds.esd.custom.form.annotation.FormAnnotation;
import com.ds.esd.custom.gallery.CustomGalleryViewBean;


@FormAnnotation(col = 2)
public class GalleryItemView {


    @CustomAnnotation(hidden = true, pid = true)
    String viewInstId;
    @CustomAnnotation(hidden = true, pid = true)
    String domainId;
    @CustomAnnotation(hidden = true, pid = true)
    public String entityClassName;
    @CustomAnnotation(hidden = true, pid = true)
    public String sourceClassName;

    @CustomAnnotation(caption = "边框留白")
    public String itemMargin;
    @CustomAnnotation(caption = "填充边框")
    public String itemPadding;
    @CustomAnnotation(caption = "画廊宽度")
    public String itemWidth;
    @CustomAnnotation(caption = "画廊高度")
    public String itemHeight;
    @CustomAnnotation(caption = "图片宽度")
    public String imgWidth;
    @CustomAnnotation(caption = "图片高度")
    public String imgHeight;


    public GalleryItemView() {

    }

    public GalleryItemView(CustomGalleryViewBean gridConfig) {
        if (gridConfig == null) {
            gridConfig = new CustomGalleryViewBean();
        }
        this.entityClassName = gridConfig.getEntityClassName();
        this.sourceClassName = gridConfig.getSourceClassName();

        this.viewInstId = gridConfig.getViewInstId();
        this.domainId = gridConfig.getDomainId();

        this.itemMargin = gridConfig.getItemMargin();
        this.itemPadding = gridConfig.getItemPadding();
        this.itemWidth = gridConfig.getItemWidth();
        this.imgHeight = gridConfig.getImgHeight();
        this.imgWidth = gridConfig.getImgWidth();
        this.imgHeight = gridConfig.getImgHeight();


    }

    public String getDomainId() {
        return domainId;
    }

    public void setDomainId(String domainId) {
        this.domainId = domainId;
    }

    public String getViewInstId() {
        return viewInstId;
    }

    public void setViewInstId(String viewInstId) {
        this.viewInstId = viewInstId;
    }

    public String getEntityClassName() {
        return entityClassName;
    }

    public void setEntityClassName(String entityClassName) {
        this.entityClassName = entityClassName;
    }

    public String getSourceClassName() {
        return sourceClassName;
    }

    public void setSourceClassName(String sourceClassName) {
        this.sourceClassName = sourceClassName;
    }

    public String getItemMargin() {
        return itemMargin;
    }

    public void setItemMargin(String itemMargin) {
        this.itemMargin = itemMargin;
    }

    public String getItemPadding() {
        return itemPadding;
    }

    public void setItemPadding(String itemPadding) {
        this.itemPadding = itemPadding;
    }

    public String getItemWidth() {
        return itemWidth;
    }

    public void setItemWidth(String itemWidth) {
        this.itemWidth = itemWidth;
    }

    public String getItemHeight() {
        return itemHeight;
    }

    public void setItemHeight(String itemHeight) {
        this.itemHeight = itemHeight;
    }

    public String getImgWidth() {
        return imgWidth;
    }

    public void setImgWidth(String imgWidth) {
        this.imgWidth = imgWidth;
    }

    public String getImgHeight() {
        return imgHeight;
    }

    public void setImgHeight(String imgHeight) {
        this.imgHeight = imgHeight;
    }

}
